package com.example.springbootdemo.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 *@author xuwangqi
 *@date 2021/5/24 9:28
 **/
/**
    * 商品分销表
    */
@ApiModel(value="com-example-springbootdemo-entity-Distribution")
@TableName(value = "distribution")
public class Distribution {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Integer id;

    /**
     * 等级
     */
    @TableField(value = "level")
    @ApiModelProperty(value="等级")
    private Byte level;

    /**
     * 分成比例百分比
     */
    @TableField(value = "ratio")
    @ApiModelProperty(value="分成比例百分比")
    private Byte ratio;

    public static final String COL_ID = "id";

    public static final String COL_LEVEL = "level";

    public static final String COL_RATIO = "ratio";

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取等级
     *
     * @return level - 等级
     */
    public Byte getLevel() {
        return level;
    }

    /**
     * 设置等级
     *
     * @param level 等级
     */
    public void setLevel(Byte level) {
        this.level = level;
    }

    /**
     * 获取分成比例百分比
     *
     * @return ratio - 分成比例百分比
     */
    public Byte getRatio() {
        return ratio;
    }

    /**
     * 设置分成比例百分比
     *
     * @param ratio 分成比例百分比
     */
    public void setRatio(Byte ratio) {
        this.ratio = ratio;
    }
}